import { autorun, observe } from './reactive.mjs';

const state = {
    count: 0,
};

observe(state);

autorun(() => {
    console.log('count =', state.count);
    console.log('count * 2 =', state.count * 2, '\n');
});

state.count++;
state.count = 42;
